//配置环境变量

const env = import.meta.env.MODE || 'prod'

const EnvConfig = {
    development: {
        baseApi: '/api',
        mockApi: '/api',
    },
    test: {
        baseApi: '/test-api',
        mockApi: '/test-api',
    },
    prod: {
        baseApi: '/prod-api',
        mockApi: '/prod-api',
    }
}

export default {
    env,
    //mock总开关
    mock: true,
    ...EnvConfig[env]
}